from django.conf.urls import url
from . import views

urlpatterns = [
    url(r'^register/$', views.RegisterView.as_view(), name='register'),  # 注册
    url(r'^username/(?P<username>[a-zA-Z0-9_]{5,20})/count/$', views.UsernameCountView.as_view(), name='count'),  # 检查用户名是否重复
    url(r'^mobiles/(?P<mobile>1[3-9]\d{9})/count/$', views.MobileCountView.as_view(), name='mobiles'),  # 检查手机号是否重复
    url(r'^login/$', views.LoginView.as_view(), name='login'),  # 登录
    url(r'^logout/$', views.LogoutView.as_view(), name='logout'),  # 退出登录
    url(r'^member/$', views.UserCenterView.as_view(), name='member'),  # 会员中心
    url(r'^pwd/$', views.ChangePasswordView.as_view(), name='pwd'),  # 修改密码
    url(r'^personal/$', views.PersonalView.as_view(), name='personal'),  # 修改密码
    url(r'^memberput/$', views.MemberPutView.as_view(), name='memberput'),  # 修改资料
]
